package at.technikum.fotoalbum.phaselistener;

import javax.faces.event.PhaseEvent;
import javax.faces.event.PhaseId;
import javax.faces.event.PhaseListener;


/**
 * only a dummy class to learn the cycle
 * 
 * @author ande
 */
@SuppressWarnings("serial")
public class FotoalbumPhaseListener implements PhaseListener {

	@Override
	public void afterPhase(PhaseEvent event) {
		event.getFacesContext().getExternalContext().log("AFTER " +event.getPhaseId());
		
	}

	@Override
	public void beforePhase(PhaseEvent event) {
		event.getFacesContext().getExternalContext().log("BEFORE " + event.getPhaseId());
		
	}

	@Override
	public PhaseId getPhaseId() {
		return PhaseId.ANY_PHASE;
	}

}
